/*
 * File: globaldef.h 
 * Author: Sam Tran (tpmsam@yahoo.com), UHCL, April 2006
 */

#ifndef __GLOBAL_H
#define __GLOBAL_H

#define NNODES (int)(parentModule()->par("NNODES"))
#define MAXCONN (int)(parentModule()->par("MAXCONN"))
#define SRADIUS 30
#define CRADIUS 150
// constants used for position and mobility
#define SPACEX 640
#define SPACEY 540
#define SOFTT 15
 struct nodepos_struct			/* 2D position structure */	
  {
     int x;		/* x position	*/
     int y;		/* y position	*/
  };

// message types
enum {
M_LOWHIGH,     // message from lower layer to higher layer
M_NODE,        // message from another node
M_UPDSSTRENGTH, // message to change the sensing radius
M_SELF,			// test message for the application
M_ACTIVATE,        // message from another node
M_HIGHLOW,     // message from higher layer to lower layer
};
// other includes...
#include "macros.h"
#endif
